package com.ganbo.ms.netty.simple.server;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @author ganbo
 * @date 2022/12/7 20:47
 */
public class AInHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        System.out.println("A============>" + msg);

//        ctx.channel().pipeline().remove("B");
//        System.out.println("移出B");
        super.channelRead(ctx, 55);
    }
}
